#ifndef INJECTDLL_H
#define INJECTDLL_H

#include <QMutex>
#include <QObject>
#include <QRunnable>
#include <QThread>
#include <QWaitCondition>
#include <QString>
#include <QFile>
#include <QList>
#include <QPair>
#include <windows.h>
#include <wtsapi32.h>
#include <tlhelp32.h>
class InjectDLL : public QObject, public QRunnable
{
    Q_OBJECT

public:
    explicit InjectDLL(QObject *parent = nullptr);
        // 注入 DLL
    void Inject_init(DWORD pid, const QString &dllPath);
protected:
    void run();
signals:
    void SendDra(const QString &message);
    

private:
    QString dllPath;
    DWORD pid;
    QWaitCondition *cond;
    QMutex *mutex;

};

#endif // EJECTDLL_H
